package net.zoneland.knowledge.dao;

import org.apache.ibatis.annotations.Insert;
import org.apache.ibatis.annotations.Mapper;

import net.zoneland.knowledge.model.ErrorCorrection;



/**
 * 纠错数据接口.
 * @author zmq
 * @date 2021/10/8 16:20
 */
@Mapper
public interface ErrorCorrectionMapper {
    /**
     * 插入纠错数据.
     * @param errorCorrection 纠错数据
     * @return 条数
     */
    @Insert({
        "insert into AITK_ERROR_CORRECTION (ID, DESCRIPTION, ",
        "CREATORUID, ESQUESTIONID, ",
        "CREATORNAME, CORRECTTYPE, ",
        "STATUS, HANDLERUID, ",
        "HANDLERNAME, CREATETIME, ",
        "UPDATETIME)",
        "values (#{id,jdbcType=VARCHAR}, #{description,jdbcType=VARCHAR}, ",
        "#{creatorUid,jdbcType=VARCHAR}, #{esQuestionId,jdbcType=VARCHAR}, ",
        "#{creatorName,jdbcType=VARCHAR}, #{correctType,jdbcType=VARCHAR}, ",
        "#{status,jdbcType=VARCHAR}, #{handlerUid,jdbcType=VARCHAR}, ",
        "#{handlerName,jdbcType=VARCHAR}, #{createTime,jdbcType=TIMESTAMP}, ",
        "#{updateTime,jdbcType=TIMESTAMP})"
    })
    int insert(ErrorCorrection errorCorrection);
}
